﻿@model CmsAdminPageModel

@{
    Layout = "~/admin/Templates/TelerikAdministration.cshtml";
    ResFile = "cms_Pages";
    ViewBag.Title = _("Page {0} history", Model.PageName);
}

<p><a class="b-back-link" href="/admin/cmspage/edit/@Model.LatestPageId"><i class="b-icon"></i> @_("Back to page details")</a></p>

<h1 class="g-clear">
	<i class="b-icon b-icon_h b-icon_h_pages"></i>
	<span class="b-overflow">
	@Model.PageName
	<span class="b-intro-text">@_("Audit trail of all updates, workflow notes and review cycle information relating to this page.")</span>
	</span>  
</h1>

@{ Html.Telerik().TabStrip()
        .Name("TabStrip")
        .Items(tabstrip =>
        {
            tabstrip.Add()
                .Text(_("Revision history"))
                .LoadContentFrom("revisionhistory", "cmspage", new { id = Model.Id }).Selected(true);
            tabstrip.Add()
                .Text(_("Workflow notes"))
                .LoadContentFrom("workflownotes", "cmspage", new { id = Model.Id }).Visible(CmsConfiguration.IsWorkflowEnabled);            
        })
        .SelectedIndex(0)
        .Render();
} 
<br />
<p><a class="b-back-link" href="/admin/cmspage/edit/@Model.Id"><i class="b-icon"></i> @_("Back to page details")</a></p>